/**
 * @description 表头-交互
 */
const state = () => ({
  modal: false, //弹框
  inputType: '', // 输入框配置类型（前置扩展还是后置扩展）
})
const getters = {
  getModal: (state) => state.modal,
  getInputType: (state) => state.inputType
}
const mutations = {
  modalSwitch(state, inputType) {
    state.modal = !state.modal
    state.inputType = inputType || ''
  },
}
const actions = {
  modalSwitch({ commit }, data) {
    commit('modalSwitch', data)
  },
}
export default { state, getters, mutations, actions }
